Arm/atomic: correct asm() constraints in build_add_sized()
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:42:17 +0000 (14:42 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 19 Apr 2019 21:02:03 +0000 (14:02 -0700)
commit348922b16a0901ccc7b8980c92703b2ce20d1a2d
tree6b9fcb95b42a6f47e74f6d2d2aa5d68ee2f9f8f7
parent718a8d2e9cbacb14f86f6dee40732727cd79bcff
Arm/atomic: correct asm() constraints in build_add_sized()

The memory operand is an in/out one, and the auxiliary register gets
written to early.

Take the opportunity and also drop the redundant cast (the inline
functions' parameters are already of the casted-to type).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
(cherry picked from commit 51ceb1623b9956440f1b9943c67010a90d61f5c5)
xen/include/asm-arm/atomic.h